package com.assignwork.service;

import com.assignwork.dto.WorkArrangeWorkersSubmitDTO;
import com.assignwork.entity.WorkArrangeWorkers;
import com.assignwork.vo.WorkArrangeWorkersVO;
import org.springblade.core.mp.base.BaseService;

import java.util.List;

/**
 * @ClassName IWorkArrangeWorkersService
 * @Description 配工工人接口
 * @Author dujianyu
 * @Date 2023/12/13 9:32
 */
public interface IWorkArrangeWorkersService extends BaseService<WorkArrangeWorkers> {

    /**
     * 提交配工工人
     * @param arrangeId 配工ID
     * @param data 数据
     * @param arrangeType 配工类型
     * @return boolean
     * @author dujianyu
     * @since 2023/12/13 9:44
     */
    boolean submitWaWorkers(Long arrangeId, List<WorkArrangeWorkersSubmitDTO> data, String arrangeType);

    /**
     * 根据配工ID返回工人信息
     * @param arrangeId 配工ID
     * @return  List<WorkArrangeWorkersVO>
     * @author dujianyu
     * @since 2023/12/13 11:17
     */
    List<WorkArrangeWorkersVO> infoByArrangeId(Long arrangeId);

    /**
     * 根据配工ID删除工人信息
     * @param arrangeId 配工ID
     * @return boolean
     * @author dujianyu
     * @since 2023/12/13 11:36
     */
    boolean removeByArrangeId(Long arrangeId);
}
